﻿package mortal.component.skin.button
{
    import com.mui.core.*;
    import com.mui.skins.*;
    import fl.core.*;
    import flash.geom.*;
    import flash.text.*;
    import mortal.common.*;

    public class TabButtonStyle extends SkinStyle
    {
        private var _scaleRect:Rectangle;
        private var _textFormat:TextFormat;
        private var _textFormatDisable:TextFormat;

        public function TabButtonStyle()
        {
            this._scaleRect = new Rectangle(10, 0, 47, 22);
            this._textFormat = new GTextFormat(null, 12, 11661308);
            this._textFormatDisable = new GTextFormat(null, 12, 16777215);
            return;
        }// end function

        override public function setStyle(param1:UIComponent) : void
        {
            param1.setStyle("upSkin", GlobalClass.getScaleBitmap("TabButton_upSkin", this._scaleRect));
            param1.setStyle("downSkin", GlobalClass.getScaleBitmap("TabButton_overSkin", this._scaleRect));
            param1.setStyle("overSkin", GlobalClass.getScaleBitmap("TabButton_overSkin", this._scaleRect));
            param1.setStyle("disabledSkin", GlobalClass.getScaleBitmap("TabButton_disabledSkin", this._scaleRect));
            param1.setStyle("textFormat", this._textFormat);
            param1.setStyle("disabledTextFormat", this._textFormatDisable);
            return;
        }// end function

    }
}
